import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const promotion: AppRouteModule = {
  path: '/promotion',
  name: 'Promotion',
  component: LAYOUT,
  redirect: '/promotion/buried_point',
  meta: {
    id: 30000,
    orderNo: 5,
    icon: 'Promotion:svg',
    tagName: 'total',
    tag: {
      dot: false,
      content: '',
      type: 'error',
    },
    title: t('routes.promotion.promotion'),
    slectPath: '/promotion',
  },
  children: [
    {
      path: 'buried_point',
      name: 'BuriedPoint',
      component: () => import('/@/views/promotion/buriedPoint/index.vue'),
      meta: {
        id: 30100,
        title: t('routes.promotion.buried_point'),
        icon: 'BuriedPoint:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'channel_management',
      name: 'ChannelManagement',
      component: () => import('/@/views/promotion/channelManagement/index.vue'),
      meta: {
        id: 30200,
        title: t('routes.promotion.channel_management'),
        icon: 'ChannelManagement:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'statics_code',
      name: 'staticsCode',
      component: () => import('/@/views/promotion/staticsCode/index.vue'),
      meta: {
        id: 90231,
        title: t('routes.promotion.statics_code'),
        icon: 'BuriedPoint:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'google_management',
      name: 'GoogleManagement',
      component: () => import('/@/views/promotion/googleManagement/index.vue'),
      meta: {
        id: 30300,
        title: t('routes.promotion.google_management'),
        icon: 'GoogleManager:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'advertise_grouping',
      name: 'AdvertiseGrouping',
      component: () => import('/@/views/promotion/advertiseGrouping/index.vue'),
      meta: {
        id: 30400,
        title: t('routes.promotion.ad_grouping_1'),
        icon: 'AdvertiseGrouping:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'race_price_roi',
      name: 'RacePriceRoi',
      component: () => import('/@/views/promotion/racePriceRoi/index.vue'),
      meta: {
        id: 30500,
        title: t('routes.promotion.race_price_roi'),
        icon: 'RacePriceRoi:svg',
        slectPath: '/promotion',
      },
    },
    {
      path: 'month_price_roi',
      name: 'MonthPriceRoi',
      component: () => import('/@/views/promotion/monthPriceRoi/index.vue'),
      meta: {
        id: 30600,
        title: t('routes.promotion.month_price_roi'),
        icon: 'MonthPriceRoi:svg',
        slectPath: '/promotion',
      },
    },
  ],
};

export default promotion;
